package ar.com.ford.it.fullEconomics.persistence.dao.query;

import oracle.toplink.expressions.Expression;
import oracle.toplink.expressions.ExpressionBuilder;
import com.ford.it.persistence.impl.toplink.CustomExpressionFactory;

public class FilefindByFlagQuery implements CustomExpressionFactory {

    public Expression createExpression(ExpressionBuilder builder,Object[] parameters) {
        
    	Expression exp = null;
    	String param []	= (String[])parameters[0];
    	
    	
    	if(param.length>0){
    		exp = builder.get("eesx01IntfTypeCodeC").equal(param[0]);
	    	for(int x=1;x<param.length;x++){
	    		exp = exp.or(builder.get("eesx01IntfTypeCodeC").equal(param[x]));
	    	}
    	}   	
        
        return exp;
    }

}
